package com.yeyks.vip.dal.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 会员卡购买订单支付记录表
 * </p>
 *
 * @author yun
 * @since 2019-08-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="MemberCardEnableRecord对象", description="会员卡购买订单支付记录表")
public class MemberCardEnableRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "支付订单ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "订单号")
    @TableField("order_no")
    private String orderNo;

    @ApiModelProperty(value = "支付状态:1未支付,2支付成功,3支付失败,4已退款")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "支付方式，0微信，1支付宝，4小程序，5公众号，6wallet")
    @TableField("pay_type")
    private Integer payType;

    @ApiModelProperty(value = "发起支付的时间")
    @TableField("start_time")
    private Date startTime;

    @ApiModelProperty(value = "支付编号")
    @TableField("pay_return_no")
    private String payReturnNo;

    @ApiModelProperty(value = "完成支付的时间")
    @TableField("finish_time")
    private String finishTime;

    @ApiModelProperty(value = "支付金额")
    @TableField("pay_amount")
    private Integer payAmount;

    @ApiModelProperty(value = "支付返回信息")
    @TableField("pay_result")
    private String payResult;

    @ApiModelProperty(value = "退款金额")
    @TableField("refund_amount")
    private Integer refundAmount;

    @ApiModelProperty(value = "退款返回信息")
    @TableField("refund_result")
    private String refundResult;

    @ApiModelProperty(value = "退款时间")
    @TableField("refund_time")
    private Date refundTime;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private Date updateTime;


    public static final String ID = "id";

    public static final String ORDER_NO = "order_no";

    public static final String STATUS = "status";

    public static final String PAY_TYPE = "pay_type";

    public static final String START_TIME = "start_time";

    public static final String PAY_RETURN_NO = "pay_return_no";

    public static final String FINISH_TIME = "finish_time";

    public static final String PAY_AMOUNT = "pay_amount";

    public static final String PAY_RESULT = "pay_result";

    public static final String REFUND_AMOUNT = "refund_amount";

    public static final String REFUND_RESULT = "refund_result";

    public static final String REFUND_TIME = "refund_time";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

}
